﻿using ATMClientWinForm.ATMService;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ATMClientWinForm
{
    public partial class ManageATM : Form
    {
        Account account;
       
        public ManageATM(Account acc)
        {
            InitializeComponent();
           
            lblTitle.Text = "Welcome: " + acc.Name + " sign in Banks";
            this.account = acc;
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            LoginForm login = new LoginForm();
            login.Show();
            this.Hide();
        }

        private void btnWithdrawMoney_Click(object sender, EventArgs e)
        {
            
            GetCa ad = new GetCa(this.account);
            ad.Show();
            this.Hide();
        }

        private void btnTransfer_Click(object sender, EventArgs e)
        {
           
            Transfer ad = new Transfer(this.account);
            ad.Show();
            this.Hide();
        }

        private void btnInformationTransfer_Click(object sender, EventArgs e)
        {
            InformationTransfer ad = new InformationTransfer(this.account);
            ad.Show();
            this.Hide();
        }
       
    }
}
